Skip to content

REGR: read_csv and nullable dtypes fails if dtype is specified #49147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

phofl
Copy link
Member

@phofl phofl commented Oct 17, 2022

@phofl phofl added Regression Functionality that used to work in a prior pandas version IO CSV read_csv, to_csv labels Oct 17, 2022
@phofl phofl added this to the 2.0 milestone Oct 17, 2022
1,2
"""
parser = all_parsers
result = parser.read_csv(StringIO(data), dtype="Int64", use_nullable_dtypes=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have tests for dtype="int64", use_nullable_dtypes=True?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_use_nullabla_dtypes_and_dtype Same file

@mroeschke mroeschke merged commit 856e1e2 into pandas-dev:main Oct 17, 2022
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the 49146 branch October 17, 2022 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO CSV read_csv, to_csv Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pd.read_csv with use_nullable_dtypes incompatible with dtype coercion
2 participants